{
    int DSJJZLMJB69 = 0;
    if (DSJJZLMJB69 == 1) {
        CGContextRef DSJJZLMJB_ctx = UIGraphicsGetCurrentContext();
        UIBezierPath *DSJJZLMJB_path = [[UIBezierPath alloc] init];
        //初始点
        CGPoint DSJJZLMJB_startPoint;
        //移动到初始点
        [DSJJZLMJB_path moveToPoint:DSJJZLMJB_startPoint];
        //是否为曲线图
        BOOL DSJJZLMJB_isCurve;
        //点的集合
        NSArray *DSJJZLMJB_pointArray;
        //设置点之间的水平距离
        CGFloat xInstance = 10;
        for (int i = 0; i < DSJJZLMJB_pointArray.count; i++) {
            CGPoint DSJJZLMJB_endPoint =CGPointMake(xInstance *i, [DSJJZLMJB_pointArray[i] floatValue]);

            CGFloat DSJJZLMJB_centerX = (DSJJZLMJB_startPoint.x + DSJJZLMJB_endPoint.x)/2;

            CGPoint DSJJZLMJB_crl1 = CGPointMake(DSJJZLMJB_centerX, DSJJZLMJB_startPoint.y);

            CGPoint DSJJZLMJB_crl2 = CGPointMake(DSJJZLMJB_centerX, DSJJZLMJB_endPoint.y);

            if (DSJJZLMJB_isCurve) {
                //添加曲线路径，用于曲线图
                [DSJJZLMJB_path addCurveToPoint:DSJJZLMJB_endPoint controlPoint1:DSJJZLMJB_crl1 controlPoint2:DSJJZLMJB_crl2];
                DSJJZLMJB_startPoint = DSJJZLMJB_endPoint;
            }
            else
            {
                //添加直线路径，用于折线图
                [DSJJZLMJB_path addLineToPoint:DSJJZLMJB_endPoint];
            }
        }
        //线的颜色
        [[UIColor yellowColor] set];
        //线宽
        CGContextSetLineWidth(DSJJZLMJB_ctx, 2);
        // 将路径添加到图形上下文
        CGContextAddPath(DSJJZLMJB_ctx, DSJJZLMJB_path.CGPath);
        // 渲染
        CGContextStrokePath(DSJJZLMJB_ctx);
    }
}
{
    int DSJJZLMJB68 = 0;
    if (DSJJZLMJB68 == 1) {
        CGFloat DSJJZLMJB_SCREEN_WIDTH = 375;
        CGFloat DSJJZLMJB_boundsHeight = 100;
        UIView *DSJJZLMJB_booHeaderView = [[UIView alloc] init];
        CAGradientLayer *DSJJZLMJB_gradientLayer = [[CAGradientLayer alloc] init];
        DSJJZLMJB_gradientLayer.frame = CGRectMake(0, 0, DSJJZLMJB_SCREEN_WIDTH -122, DSJJZLMJB_boundsHeight);
        DSJJZLMJB_gradientLayer.colors = @[(__bridge id)[UIColor redColor].CGColor, (__bridge id)[UIColor whiteColor].CGColor];
        DSJJZLMJB_gradientLayer.startPoint = CGPointMake(0.5, 0);
        DSJJZLMJB_gradientLayer.endPoint = CGPointMake(0.5, 1);
        CAShapeLayer *DSJJZLMJB_maskLayer = [[CAShapeLayer alloc] init];
        DSJJZLMJB_maskLayer.lineWidth = 2;
        DSJJZLMJB_maskLayer.path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, DSJJZLMJB_SCREEN_WIDTH -122, DSJJZLMJB_boundsHeight) byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(12, 12)].CGPath;
        DSJJZLMJB_maskLayer.fillColor = UIColor.clearColor.CGColor;
        DSJJZLMJB_maskLayer.strokeColor = UIColor.redColor.CGColor;
        DSJJZLMJB_gradientLayer.mask = DSJJZLMJB_maskLayer;
        [DSJJZLMJB_booHeaderView.layer addSublayer:DSJJZLMJB_gradientLayer];
        DSJJZLMJB_booHeaderView.layer.cornerRadius = 12;
    }
}
{
    int DSJJZLMJB67 = 0;
    if (DSJJZLMJB67 == 1) {
        CGFloat DSJJZLMJB_colors [] = {
                    1.0, 0.0, 0.0, 1.0,
                    1.0, 1.0, 0.0, 1.0,
                    0.0, 1.0, 0.0, 1.0,
                    0.0, 1.0, 1.0, 1.0,
                    0.0, 0.0, 1.0, 1.0,
                    1.0, 0.0, 1.0, 1.0
                };
        CGRect DSJJZLMJB_rect = CGRectMake(0, 0, 200, 100);
                
        CGRect DSJJZLMJB_mapRect = CGRectIntegral(CGRectInset(DSJJZLMJB_rect, 100, 250));
        CGColorSpaceRef DSJJZLMJB_baseSpace = CGColorSpaceCreateDeviceRGB();
        CGGradientRef DSJJZLMJB_gradient = CGGradientCreateWithColorComponents(DSJJZLMJB_baseSpace, DSJJZLMJB_colors, NULL, 6);
        CGColorSpaceRelease(DSJJZLMJB_baseSpace), DSJJZLMJB_baseSpace = NULL;
        
        CGContextRef DSJJZLMJB_context = UIGraphicsGetCurrentContext();
        
        CGContextSetLineWidth(DSJJZLMJB_context, 4);
        CGContextSetLineJoin(DSJJZLMJB_context, kCGLineJoinRound);
        CGContextSetLineCap(DSJJZLMJB_context, kCGLineCapRound);
        
        CGContextAddPath(DSJJZLMJB_context, CGPathCreateWithRoundedRect(DSJJZLMJB_mapRect, 16, 16, NULL));
        CGContextReplacePathWithStrokedPath(DSJJZLMJB_context);
        CGContextClip(DSJJZLMJB_context);

        // Define the start and end points for the gradient
        // This determines the direction in which the gradient is drawn
        CGPoint DSJJZLMJB_startPoint = CGPointMake(CGRectGetMidX(DSJJZLMJB_mapRect), CGRectGetMinY(DSJJZLMJB_mapRect));
        CGPoint DSJJZLMJB_endPoint = CGPointMake(CGRectGetMidX(DSJJZLMJB_mapRect), CGRectGetMaxY(DSJJZLMJB_mapRect));
        
        CGContextDrawLinearGradient(DSJJZLMJB_context, DSJJZLMJB_gradient, DSJJZLMJB_startPoint, DSJJZLMJB_endPoint, 0);
        CGGradientRelease(DSJJZLMJB_gradient), DSJJZLMJB_gradient = NULL;
    }
}
{
    int DSJJZLMJB66 = 0;
    if (DSJJZLMJB66 == 1) {
        CGRect DSJJZLMJ_rect = CGRectMake(0, 0, 100, 30);
        UIBezierPath *DSJJZLMJ_path = [UIBezierPath bezierPath];
        [DSJJZLMJ_path moveToPoint:CGPointMake(0, 0)];
        [DSJJZLMJ_path addLineToPoint:CGPointMake(DSJJZLMJ_rect.size.width, 0)];
        [DSJJZLMJ_path addLineToPoint:CGPointMake(DSJJZLMJ_rect.size.width / 2, DSJJZLMJ_rect.size.height)];
        
        /*
         闭合线可以通过下面的两种方式实现
         [path closePath];
         [path addLineToPoint:CGPointMake(20, 20)];
         */
        [DSJJZLMJ_path closePath];
        
        DSJJZLMJ_path.lineWidth = 1.5;//设置线宽
        
        UIColor *DSJJZLMJ_fillColor = [UIColor greenColor];
        [DSJJZLMJ_fillColor set];//使设置的颜色生效
        [DSJJZLMJ_path fill];//填充整个三角区颜色
        
        /*
         设置边线颜色
         */
        UIColor *DSJJZLMJ_strokeColor = DSJJZLMJ_fillColor;
        [DSJJZLMJ_strokeColor set];//使设置的颜色生效
        
        [DSJJZLMJ_path stroke];//连线
    }
}
{
    int DSJJZLMJB65 = 0;
    if (DSJJZLMJB65 == 1) {
        
        UIView *DSJJZLMJB_lineView = [[UIView alloc] init];
        CGFloat DSJJZLMJB_width =DSJJZLMJB_lineView.bounds.size.width;
        CGFloat DSJJZLMJB_height = DSJJZLMJB_lineView.bounds.size.height;

        UIBezierPath * DSJJZLMJB_bezierPath = [[UIBezierPath alloc]init];
        CAShapeLayer *DSJJZLMJB_layer = [CAShapeLayer layer];

        DSJJZLMJB_layer.path= DSJJZLMJB_bezierPath.CGPath;

        DSJJZLMJB_layer.fillColor = [UIColor clearColor].CGColor;
        DSJJZLMJB_layer.strokeEnd = 0;
        DSJJZLMJB_layer.strokeColor = [UIColor yellowColor].CGColor;
        DSJJZLMJB_layer.lineWidth = DSJJZLMJB_height;//线宽
        DSJJZLMJB_layer.lineCap = @"round";//圆角
        [DSJJZLMJB_lineView.layer addSublayer:DSJJZLMJB_layer];
        DSJJZLMJB_lineView.layer.cornerRadius =DSJJZLMJB_height/2;
        DSJJZLMJB_lineView.clipsToBounds = YES;
        DSJJZLMJB_lineView.backgroundColor = [UIColor whiteColor];
    }
    
}
{
    int DSJJZLMJB66 = 0;
    if (DSJJZLMJB66 == 1) {
        UIView *DSJJZLMJB_greenView = [[UIView alloc] init];
        [UIView animateWithDuration:1 animations:^{
            ///缩放比例
            DSJJZLMJB_greenView.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.5, 1.5);
            ///位置调整
            CGRect DSJJZLMJB_rect     = DSJJZLMJB_greenView.frame;
            DSJJZLMJB_rect.origin.x += 50;
            DSJJZLMJB_rect.origin.y += 50;
            DSJJZLMJB_greenView.frame = DSJJZLMJB_rect;
            ///透明度变化
            DSJJZLMJB_greenView.alpha = 0.5;
            ///color变化
            DSJJZLMJB_greenView.backgroundColor = UIColor.redColor;
            ///圆角改变
            DSJJZLMJB_greenView.layer.cornerRadius = 50;
            DSJJZLMJB_greenView.clipsToBounds = YES;
        }];
    }
}
{
    int DSJJZLMJB64 = 0;
    if (DSJJZLMJB64 == 1) {
        UIView *DSJJZLMJB_greenView = [[UIView alloc] init];
        CABasicAnimation * DSJJZLMJB_rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
        DSJJZLMJB_rotationAnimation.toValue       = [NSNumber numberWithFloat: M_PI * 2.0  ];
        DSJJZLMJB_rotationAnimation.duration      = 5;
        DSJJZLMJB_rotationAnimation.cumulative    = YES;
        DSJJZLMJB_rotationAnimation.repeatCount   = HUGE_VAL;
        DSJJZLMJB_rotationAnimation.removedOnCompletion = NO;
        [DSJJZLMJB_greenView.layer addAnimation:DSJJZLMJB_rotationAnimation forKey:@"rotationAnimation"];
    }
}
{
    int DSJJZLMJB63 = 0;
    if (DSJJZLMJB63 == 1) {
        UIView *DSJJZLMJB_greenView = [[UIView alloc] init];
        //绕线一周动画
        CGMutablePathRef DSJJZLMJB_path = CGPathCreateMutable();
        //第一个关键帧  -100，-100
        CGPathMoveToPoint(DSJJZLMJB_path, NULL, 0, 0);
        //第二个关键帧  100，-100
        CGPathAddLineToPoint(DSJJZLMJB_path, NULL, 100, 0);
        //第三个关键帧  100，100
         CGPathAddLineToPoint(DSJJZLMJB_path, NULL, 100, 100);
        //第四个关键帧  -100，100
        CGPathAddLineToPoint(DSJJZLMJB_path, NULL, 0, 100);
        //第五个关键帧  -100，-100
        CGPathAddLineToPoint(DSJJZLMJB_path, NULL, 0, 0);
             
        CAKeyframeAnimation *DSJJZLMJB_animation = [CAKeyframeAnimation animation];
        DSJJZLMJB_animation.keyPath = @"transform.translation";
        DSJJZLMJB_animation.path = DSJJZLMJB_path;
        DSJJZLMJB_animation.duration = 4;
        DSJJZLMJB_animation.keyTimes = @[@(0),@(0.1),@(0.5),@(0.75),@(1)];
        DSJJZLMJB_animation.timingFunctions = @[[CAMediaTimingFunction functionWithControlPoints:1 :0.5 :0.5 :0.5],
                                              [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn],
                                              [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut],
                                              [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]];
        //动画结束后保持动画最后的状态，两个属性需配合使用
        DSJJZLMJB_animation.removedOnCompletion = NO;
        DSJJZLMJB_animation.fillMode = kCAFillModeForwards;
                
        CGPathRelease(DSJJZLMJB_path);
        [DSJJZLMJB_greenView.layer addAnimation:DSJJZLMJB_animation forKey:@""];
    }
}
